//
//  Utils+Text.h
//  NvSellerShow
//
//  Created by Meicam on 2017/2/25.
//  Copyright © 2017年 Meicam. All rights reserved.
//

#import "Utils.h"
NS_ASSUME_NONNULL_BEGIN

@interface Utils (Text)

+ (CGFloat)widthForSingleLineString:(NSString *)text font:(UIFont *)font;

+ (BOOL)isBlankString:(NSString *)string ;

//获取拼音首字母(传入汉字字符串, 返回大写拼音首字母)
+ (NSString *)firstPinyinLetterOfString:(NSString *)aString;
//获取拼音
+ (NSString *)pinyinOfString:(NSString *)aString;

+ (NSString *)sizeStringWithStyle:(nullable id)style size:(long long)size;


+ (CGSize)boundingSizeForText:(NSString *)text maxWidth:(CGFloat)maxWidth font:(UIFont *)font lineSpacing:(CGFloat)lineSpacing;

+ (NSMutableAttributedString *)highlightDefaultDataTypes:(NSMutableAttributedString *)attributedString;

@end

NS_ASSUME_NONNULL_END
